package hn.cch.thymeleaf.repository;

import hn.cch.thymeleaf.entity.Actor;
import org.springframework.data.neo4j.repository.GraphRepository;
import org.springframework.stereotype.Repository;




/**
 * @author CCH
 * @version 2018.07.10
 */
@Repository
public interface ActorRepository extends GraphRepository<Actor> {

    //Actor findByName(@Param("name") String name);
    //
    //@Query("MATCH (a:Actor) WHERE a.name =~ ('(?i).*'+{name}+'.*') RETURN a")
    //Page<Actor> findByName(@Param("name") String name, Pageable pageable);

}
